
package com.shop.cloud.upms.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.shop.cloud.common.core.mybatis.typehandler.ArrayStringTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.ibatis.type.JdbcType;


/**
 * 租户套餐菜单
 *
 * @author
 * @date 2023-12-25 14:37:02
 */
@Data
@TableName("sys_tenant_package_menu")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "租户套餐菜单")
public class SysTenantPackageMenu extends Model<SysTenantPackageMenu> {
    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private String packageId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新
     */
    @Schema(description = "更新")
    private LocalDateTime updateTime;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @Schema(description = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 菜单id
     */
    @NotNull(message = "菜单id不能为空")
    @Schema(description = "菜单id")
    @TableField(typeHandler = ArrayStringTypeHandler.class, jdbcType= JdbcType.VARCHAR)
    private String[] menuIds;

}
